﻿using System;
using System.Collections.Generic;
using System.Text;

namespace App.Modelo
{
    public class Idioma: Interfaces.ICultura
    {
        public Idioma()
        {
        }

        public Idioma(string Id)
        {
            this.Descripcion = this.Id = Id;
        }

        public Idioma(string Id, string Descripcion)
        {
            this.Id = Id;
            this.Descripcion = Descripcion;
        }

        

        
        public virtual String Id { get; set; }

        public virtual String Descripcion { get; set; }


        public override string ToString()
        {
            return this.Id;
        }

        public override bool Equals(object obj)
        {
            if (obj is Idioma)
                return ((Idioma)obj).Id == this.Id;

            if( obj is String ) 
                return obj == this.Id;

            return false;
        }
    }
}
